const mesScrollData = {
    pendingPageIndex: 1,
    completePageIndex: 1,
    size: 60,
    pArr: [],
    cArr: [],
    //待办列表
    pendingInit() {
        window.pendingInit = new MeScroll("so", {
            down: {
                // auto:false,
                callback: function () {
                    mesScrollData.pendingPageIndex = 1;
                    mesScrollData.pArr = [];
                    // store.commit('getReceiveList', 0)
                }
            },
            up: {
                page: {size: mesScrollData.size},
                // auto:false,
                loadFull: {
                    use: true,
                    delay: 500
                },
                htmlNodata:'<p class="upwarp-nodata">-- 暂无更多数据 --</p>',
                callback:function(){
                    // store.commit('getReceiveList', 0)
                }
            }
        });
    },
    //办结列表
    completeInit() {
        window.completeInit = new MeScroll("st", {
            down: {
                auto:false,
                callback: function () {
                    mesScrollData.completePageIndex = 1;
                    mesScrollData.cArr = [];
                    // store.commit('getReceiveList', 1)
                }
            },
            up: {
                page: {size: mesScrollData.size},
                auto:false,
                htmlNodata:'<p class="upwarp-nodata">-- 暂无更多数据 --</p>',
                loadFull: {
                    use: true,
                    delay: 500
                },
                callback:function(){
                    // store.commit('getReceiveList', 1)
                }
            }
        });
    },
    rereshData(){
        this.pendingPageIndex = 1;
        this.completePageIndex = 1;
        this.pArr = [];
        this.cArr = [];
        // store.commit('getReceiveList', 0);
        // store.commit('getReceiveList', 1);
    }
};